package com.ruoyi.consumer.controller;

import com.ruoyi.consumer.feign.TestFeignClient;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @program: ruoyi
 * @description:
 * @author: wei
 * @date: 2021-05-14 14:35
 **/
@RestController
@RequestMapping("/consumer")
public class TestFeign {
    @Autowired
    TestFeignClient testFeignClient;

    @GetMapping("/test")
    public String test(){
        return testFeignClient.test();
    }
}
